package day04;

import java.util.Scanner;

public class Text {
    public static void main(String[] args) {
        int sum = 1;
        Scanner sc = new Scanner(System.in);
        /*for (int i = 1900; i <= 2023; i++) {
            if (i % 4 == 0 && i % 100 != 0 || i % 400 == 0) {
                System.out.print(i + " ");
                sum += 1;
            }
            if (sum == 10) {
                System.out.println();
                sum = 0;
            }
        }*/
        /*System.out.println("请输入i");
        int n = sc.nextInt();
        System.out.println("请输入j    ");
        int j= sc.nextInt();


        for (int i = n; i <= j; i++) {
            if(i%2==0){
                sum+=i;
            }
        }
        System.out.println(sum);*/

        /*System.out.println("请您输入i的值");
        int n = sc.nextInt();

        for (int i = 1; i <=n; i++) {
            sum *= i;
        }
        System.out.println(sum);*/

        int n = sc.nextInt();

        for(int i = 1; i <= n; i++) {
            for(int j = 1; j <= n-i; j++) {
                System.out.print(" ");
            }
            for(int j = 1; (j <= 2*i-1); j++) {
                System.out.print("*");
            }
            System.out.println();
        }

        for(int i = n-1; i >= 1; i--) {
            for(int j = 1; j <= n-i; j++) {
                System.out.print(" ");
            }
            for(int j = 1; j <= 2*i-1; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
